package org.misalen.web.database.model.mysql.pro;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Transient;

import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
import org.misalen.annotations.ModelComment;
import org.misalen.web.database.model.mysql.BaseSqlModel;

/**
 * 网页广告预览
 * 
 * @author jianhun
 *
 */
@Entity
@Table(name = "ProWebAdvertisingPreview")
@DynamicInsert(true)
@DynamicUpdate(true)
public class ProWebAdvertisingPreview extends BaseSqlModel {

	@ModelComment("用户id")
	@Column(name = "userId", nullable = false)
	private String userId;

	@ModelComment("广告图片地址")
	@Column(name = "adverImagesUrl", nullable = false)
	private String adverImagesUrl;

	@ModelComment("广告语")
	@Column(name = "adverSlogan", nullable = false)
	private String adverSlogan;

	@ModelComment("电话或链接")
	@Column(name = "mobileOrLink", nullable = false)
	private String mobileOrLink;

	@ModelComment("载体Url或者链接")
	@Column(name = "carrierUrl", nullable = false)
	private String carrierUrl;

	@Transient
	@ModelComment("预览地址")
	private String previewUrl;

	/**
	 * 获取previewUrl
	 * 
	 * @return previewUrl previewUrl
	 */
	public String getPreviewUrl() {
		return previewUrl;
	}

	/**
	 * 设置previewUrl
	 * 
	 * @param previewUrl
	 *            previewUrl
	 */
	public void setPreviewUrl(String previewUrl) {
		this.previewUrl = previewUrl;
	}

	/**
	 * 获取userId
	 * 
	 * @return userId userId
	 */
	public String getUserId() {
		return userId;
	}

	/**
	 * 设置userId
	 * 
	 * @param userId
	 *            userId
	 */
	public void setUserId(String userId) {
		this.userId = userId;
	}

	/**
	 * 获取adverImagesUrl
	 * 
	 * @return adverImagesUrl adverImagesUrl
	 */
	public String getAdverImagesUrl() {
		return adverImagesUrl;
	}

	/**
	 * 设置adverImagesUrl
	 * 
	 * @param adverImagesUrl
	 *            adverImagesUrl
	 */
	public void setAdverImagesUrl(String adverImagesUrl) {
		this.adverImagesUrl = adverImagesUrl;
	}

	/**
	 * 获取adverSlogan
	 * 
	 * @return adverSlogan adverSlogan
	 */
	public String getAdverSlogan() {
		return adverSlogan;
	}

	/**
	 * 设置adverSlogan
	 * 
	 * @param adverSlogan
	 *            adverSlogan
	 */
	public void setAdverSlogan(String adverSlogan) {
		this.adverSlogan = adverSlogan;
	}

	/**
	 * 获取mobileOrLink
	 * 
	 * @return mobileOrLink mobileOrLink
	 */
	public String getMobileOrLink() {
		return mobileOrLink;
	}

	/**
	 * 设置mobileOrLink
	 * 
	 * @param mobileOrLink
	 *            mobileOrLink
	 */
	public void setMobileOrLink(String mobileOrLink) {
		this.mobileOrLink = mobileOrLink;
	}

	/**
	 * 获取carrierUrl
	 * 
	 * @return carrierUrl carrierUrl
	 */
	public String getCarrierUrl() {
		return carrierUrl;
	}

	/**
	 * 设置carrierUrl
	 * 
	 * @param carrierUrl
	 *            carrierUrl
	 */
	public void setCarrierUrl(String carrierUrl) {
		this.carrierUrl = carrierUrl;
	}

}
